home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_13_04 / allison / convert1.c < prev    next >
C/C++ Source or Header  |  1995-02-06  |  263b  |  24 lines

  1. LISTING 1 - Illustrates the need for function prototypes
  2.  
  3. /* convert1.c */
  4. #include <stdio.h>
  5.  
  6. main()
  7. {
  8.     dprint(123);
  9.     dprint(123.0);
  10.     return 0;
  11. }
  12.  
  13. dprint(d)
  14. double d;
  15. {
  16.     printf("%f\n",d);
  17. }
  18.  
  19. /* Output:
  20. 0.000000
  21. 123.000000
  22. */
  23.  
  24.